package com.cg.controller;

import com.cg.result.CityVO;
import com.cg.result.R;
import com.cg.service.CityService;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * <p>
 * 基础表-省市区 前端控制器
 * </p>
 *
 * @author lhy
 * @since 2024-12-26
 */
@RestController
@RequestMapping("/city")
public class CityController {
    @Resource
    private CityService cityService;
 @GetMapping("/searchCity")
    @Schema(description = "省市区三级联合查询接口")
    public R<List<CityVO>> search()
 {
     return cityService.search();
 }
}
